package com.seven.components;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Author seven
 * @Date 2020/4/24 14:54
 **/
@Component
public class LoggerComponents {
    @Bean
    public Logger setLogger(){
        //记录器
        return LoggerFactory.getLogger(getClass());
    }
}
